package com.sjtu.web;

import lombok.*;

/**
 * nerine
 * 1/28/2020
 */
@NoArgsConstructor
@AllArgsConstructor
@Getter
@Setter
@ToString
public class Result<T> {
    private int code;
    private String message;
    private T data;

    public interface ResultCode {
        int SUCCESS = 200;
        int INVALID_IDENTITY = 304;
        int ILLEGAL = 400;
        int FAIL = 500;
    }
}
